app.controller('liuzhuanfuzerenCtrl',['$scope','$http','$location',function ($scope,$http,$location) {
    var token = localStorage.getItem('token');
    $http({
        method: "POST",
        url: mainUrl+'/om/om-staff!findMutiByPage.action',
        params: {
            'Authorization': token,
            'qm.staffState':1,
            'page':1,
            'start':0,
            'limit':15,


        }
    }).then(
        function(data, status, headers, config){
            $scope.item=data.data.items;
            console.log(data);
        },function(data, status, headers, config){

        }
    );
    $scope.sending = function ($event) {
        localStorage.setItem('liuzhuanfzr',$event);
        $location.path('/yinhuanliuzhuan');
        console.log($event)
    }
    $scope.gogogo = function() {
        $http({
            method: "POST",
            url: mainUrl + '/om/om-staff!findMoveByNew.action',
            params: {
                'Authorization': token,
                'qm.nameorpinyin': $scope.chaxun,
                'qm.staffState':1,
                'page':1,
                'start':0,
                'limit':15
            }
        }).then(
            function (data, status, headers, config) {
                $scope.$parent.item = data.data.items;
                console.log(data);
            }, function (data, status, headers, config) {

            }
        );
    }
}]);